package com.moncozgc.gulimall.product;

import com.moncozgc.gulimall.product.entity.BrandEntity;
import com.moncozgc.gulimall.product.service.BrandService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//扫描mapper接口
@MapperScan("com.moncozgc.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);


    }
    BrandService brandService;

    public void contextLoads(){
        BrandEntity brandEntity = new BrandEntity();

        brandEntity.setName("123");
        brandService.save(brandEntity);
        System.out.println("保存成功....");
    }

}
